﻿using System.Diagnostics.CodeAnalysis;

namespace Basic.FlowModel.AuditSign
{
    public class SignLogSet
    {
        public long[] Ids { get; set; }
        public long OptItemId
        {
            get;
            set;
        }
        public RestoreSignFile[] Files
        {
            get;
            set;
        }
    }
    public class RestoreSignFileComparer : IEqualityComparer<RestoreSignFile>
    {
        public bool Equals ( RestoreSignFile? x, RestoreSignFile? y )
        {
            return x.SignFileId == y.SignFileId;
        }

        public int GetHashCode ( [DisallowNull] RestoreSignFile obj )
        {
            return obj.SignFileId.GetHashCode();
        }
    }
    public class RestoreSignFile
    {
        public long Id
        {
            get;
            set;
        }
        public long SignFileId
        {
            get;
            set;
        }
        public long FileId
        {
            get;
            set;
        }
        public string FileUri
        {
            get;
            set;
        }
        public long SignEmpId
        {
            get;
            set;
        }
        public DateTime SignTime
        {
            get;
            set;
        }
    }
}
